var o = require;
var t = module;
cc.Class({
    extends: cc.Component,
    properties: {mask: cc.Node, label: cc.Label},
    start: function start() {
        (this.isSelected = !1),
            (this.slined = null),
            (this.sprev = null),
            (this.snext = null),
            (this.hasForce = !1),
            (this.hided = !1),
            this.init(),
            (this.defColor = this.mask.color.toHEX());
    },
    init: function init() {
        this.word && (this.label.string = this.word);
    },
    setWord: function setWord(o) {
        this.word = o;
    },
    selected: function selected(o) {
        this.slined || ((this.isSelected = !0), (this.mask.color = this.mask.color.fromHEX(o))),
            soundMgr.playSound(soundMgr.selected);
    },
    unselected: function unselected() {
        this.slined || ((this.isSelected = !1), (this.mask.color = this.mask.color.fromHEX(this.defColor)));
    },
    lined: function lined(o) {
        this.slined = o;
    },
    disappear: function disappear(o) {
        (this.slined = o), (this.hided = !0), (this.node.active = !1);
    },
    getForce: function getForce() {
        this.hasForce || (this.hasForce = !0);
    },
    loseForce: function loseForce() {
        this.hasForce && (this.hasForce = !1);
    }
});
